//
//  QJMineSKJLCell.m
//  QuanJieShopProject
//
//  Created by apple on 2018/3/2.
//  Copyright © 2018年 apple. All rights reserved.
//

#import "QJMineSKJLCell.h"
@implementation QJMineSKJLCell

- (void)cellUpdateWithModel:(MineSKJLModel *)model{
    if (model) {
        self.nameLabel.text = [NSString stringWithoutNilFormart:model.mobile];
        self.timeLabel.text = [NSString timeChange:model.addtime withFormatter:@"yyyy-MM-dd HH:mm:ss"];
        self.userNumberLabel.text = [NSString stringWithoutNilFormart:model.total_money];
        self.shopNumberLabel.text = [NSString stringWithoutNilFormart:model.shop_money];
        self.moneyNumberLabel.text = [NSString stringWithoutNilFormart:model.pt_money];
        NSString *statusStr = [NSString stringWithoutNilFormart:model.pay_code];
        if ([statusStr isEqualToString:@"alipayapp"]) {
            self.payWayLabel.text = @"支付宝支付";
        }else if ([statusStr isEqualToString:@"appWeixinPay"]){
            self.payWayLabel.text = @"微信支付";
        }
        
        self.statusLabel.text = [NSString stringWithFormat:@"%@",model.pay_status];
    }
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

@end
